DevJourney

Python/RegEx/Basics/String Splitting/split()/2.py

text = 'Python!!!is!!!Easy'
print(text.split("!!!",1),1)
print(text.split("!!!",2),2)

# Output:
#####################
# ['Python', 'is!!!Easy'] 1
# ['Python', 'is', 'Easy'] 2
View on GitHub